<template>
  <div class="app-container">
    <AppHeader /> <!-- 顶部栏始终在最上方 -->
    <div class="layout-container">
      <AppSidebar class="sidebar" />
      <div class="main-content">
        <router-view />
      </div>
    </div>
  </div>
</template>

<script>
import AppSidebar from '@/components/Sidebar.vue'
import AppHeader from '@/components/Header.vue'
export default {
  name: "BackManager",
  components: {
    AppHeader,
    AppSidebar,
  },
};
</script>

<style scoped>
.app-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout-container {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sidebar {
  width: 200px; /* 侧边栏宽度 */
  flex-shrink: 0;
  height: 100%;
}

.main-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background-color: #f5f5f5;
}
</style>